/* 首页样式 */
/* 版心 */
.wrapper {
  margin: 0 auto;
  width: 1200px;
}

body {
  background-color: #f3f5f7;
}

/* 头部区域 */
.header {
  height: 100px;
  background-color: #fff;
}

.header .wrapper {
  height: 100px;
  display: flex;
  align-items: center;
}

.logo a {
  display: block;
  width: 195px;
  height: 41px;
  background-image: url('../images/logo.png');
  font-size: 0;
}

.nav {
  margin-left: 102px;
}

.nav ul {
  display: flex;
}

.nav li {
  margin-right: 24px;
}

.nav li a {
  padding: 6px 8px;
  font-size: 19px;
}

.nav li .active,
.nav li a:hover {
  border-bottom: 2px solid #00a4ff;
}

.search {
  display: flex;
  margin-left: 64px;
  width: 412px;
  height: 40px;
  background: #f3f5f7;
  border-radius: 20px;
  padding-left: 19px;
  padding-right: 12px;
  /* align-items: center; */
}

.search input {
  flex: 1;
  /* 去掉默认的边框 */
  border: 0;
  background-color: transparent;
  /* 去掉获取焦点后的边框 */
  outline: none;
}

/* 输入框的提示文字的样式 */
.search input::placeholder {
  font-size: 14px;
  color: #999;
}

/* 父级是flex，所有的子元素都变成弹性盒子 */
.search a {
  align-self: center;
  width: 16px;
  height: 16px;
  background-image: url('../images/search.png');
}

.user a {
  display: flex;
  align-items: center;
  margin-left: 32px;
  /* 还可以使用 vertical-align: middle; */
}

.user img {
  margin-right: 7px;
}

.user span {
  font-size: 16px;
  color: #666;
}


/* 轮播图区域 */

.banner {
  height: 420px;
  background-color: #0092cb;
}

.banner .wrapper {
  height: 420px;
  background-image: url(../uploads/banner.png);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner .left {
  padding: 3px 20px;
  width: 191px;
  height: 420px;
  background-color: rgba(0, 0, 0, 0.42);
}

.banner .left a {
  display: block;
  height: 46px;
  background: url(../images/right.png) no-repeat right center;
  line-height: 46px;
  font-size: 16px;
  color: #fff;
}

.banner .left a:hover {
  color: #00a4ff;
  background: url(../images/right-hover.png) no-repeat right center;
}

.banner .right {
  width: 218px;
  height: 305px;
  background-color: #209dd5;
  border-radius: 10px;
}

.banner .right h3 {
  color: #fff;
  font-size: 15px;
  margin-left: 14px;
  height: 48px;
  line-height: 48px;
}

.banner .right .content {
  padding: 14px;
  width: 218px;
  height: 257px;
  background-color: #fff;
  border-radius: 10px;
}

.banner .right dl {
  margin-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.banner .right dt {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.banner .right dd {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 26px;
}

.banner .right dd span {
  margin-right: 4px;
  color: #00a4ff;
}

.banner .right dd strong {
  margin-left: 4px;
  color: #7d7d7d;
  font-weight: 400;
}

.banner .right a {
  display: block;
  height: 32px;
  background-color: #00a4ff;
  border-radius: 16px;
  line-height: 32px;
  text-align: center;
  color: #fff;
  font-size: 14px;
}

/* 精品推荐 */
.recommend {
  display: flex;
  margin-top: 11px;
  padding: 0 20px;
  height: 60px;
  background-color: #fff;
  box-shadow: 0px 1px 2px 0px rgba(211, 211, 211, 0.5);
  line-height: 60px;
}


.recommend h3 {
  font-size: 18px;
  color: #00a4ff;
  font-weight: 400;
}

.recommend ul {
  /* 设置某个子元素在父级容器中flex伸缩比 */
  flex: 1;
  display: flex;
}

.recommend ul li a {
  padding: 0px 24px;
  border-right: 1px solid #e0e0e0;
  font-size: 18px;
}

.recommend ul li:last-child a {
  border-right: 0px;
}

.recommend .modify {
  font-size: 16px;
  color: #00a4ff;
}

/* 推荐课程区域 */
.course {
  margin-top: 15px;
}


/* 公共的课程头部标题 */
.hd {
  display: flex;
  justify-content: space-between;
  height: 60px;
  line-height: 60px;
}

.hd h3 {
  font-size: 21px;
  font-weight: 400;
}

.hd .more {
  padding-right: 20px;
  font-size: 14px;
  color: #999;
  background: url(../images/more.png) no-repeat right center;
}

.bd ul {
  display: flex;
  /* 设置子元素的排列方向，横向排列，超出父布局的排列方式，会自动换行 */
  flex-wrap: wrap;
  /* 设置一行的内容的间隔 */
  justify-content: space-between;
}

.bd li {
  /* 设置底部的间隔 */
  margin-bottom: 14px;
  width: 228px;
  height: 271px;
  background-color: pink;
}

.bd li .pic {
  height: 156px;
}
.bd li .text {
  display: flex;
  /* 更改flex的排列方向 */
  flex-direction: column;
  /* 设置主轴上的间隔为中间空白 */
  justify-content: space-between;
  padding: 20px;
  height: 115px;
  background-color: #fff;
}

.bd li .text h4 {
  font-size: 14px;
  font-weight: 400;
}

.bd li .text p {
  font-size: 14px;
  color: #999;
}

.bd li .text p span  {
  color: #fa6400;
}

.hd ul {
  display: flex;
}
.hd li {
  font-size: 16px;
  margin-right: 60px;
}
.hd li .active {
  color: #00a4ff;
}

.bd {
  display: flex;
  justify-content: space-between;
}
.bd .left {
  width: 228px;
}

.bd .right {
  width: 957px;
}

.bd .right .top {
  height: 100px;
  margin-bottom: 15px;
}

.footer {
  display: flex;
  align-items: center;
  margin-top: 60px;
  height: 273px;
  background-color: #fff;
}

.footer .wrapper {
  display: flex;
  justify-content: space-between;
}

.footer .left {
  width: 432px;
}

.footer .left p {
  font-size: 12px;
  line-height: 17px;
  color: #666;
  margin-top: 24px;
  margin-bottom: 14px;
}

.footer .left .download {
  display: block;
  width: 120px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  font-size: 16px;
  color: #00a4ff;
  border: 1px solid #00a4ff;
}

.footer .right {
  display: flex;
}

.footer .right dl {
  margin-right: 130px;
}

.footer .right dt {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 23px;
}

.footer .right a {
  font-size: 14px;
  color: #666;
  line-height: 24px;
}